package sketch.shape.geom;

import java.awt.Point;
import java.awt.Rectangle;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;

import sketch.shape.Shape;

public class Polygon extends Shape {

	private java.awt.Polygon polygon;

	public Polygon(int xp[], int yp[], int np) {
		polygon = new java.awt.Polygon(xp, yp, np);
	}

	public boolean contains(double arg0, double arg1, double arg2, double arg3) {
		return polygon.contains(arg0, arg1, arg2, arg3);
	}

	public boolean contains(double arg0, double arg1) {
		return polygon.contains(arg0, arg1);
	}

	public boolean contains(int arg0, int arg1) {
		return polygon.contains(arg0, arg1);
	}

	public boolean contains(Point arg0) {
		return polygon.contains(arg0);
	}

	public boolean contains(Point2D arg0) {
		return polygon.contains(arg0);
	}

	public boolean contains(Rectangle2D arg0) {
		return polygon.contains(arg0);
	}

	public Rectangle getBounds() {
		return polygon.getBounds();
	}

	public Rectangle2D getBounds2D() {
		return polygon.getBounds2D();
	}

	public boolean intersects(double arg0, double arg1, double arg2, double arg3) {
		return polygon.intersects(arg0, arg1, arg2, arg3);
	}

	public boolean intersects(Rectangle2D arg0) {
		return polygon.intersects(arg0);
	}


}
